<script>
	export default {
		onLaunch: function() {},
		onShow: function() {},
		onHide: function() {},
		data() {
			return {
				k1: '1234567890123456',
				k2: '1234567890123456',
			}
		},
		methods: {
			//AES加密
			aesEncrypt(encrypt, crypt) {
				if (crypt) {
					var e = this.AES.encrypt(encrypt, '1234567890123456', '1234567890123456')
				} else {
					var e = encrypt
				}
				return e;
			},
			//AES解密
			aesDecrypt(decrypt, crypt) {
				//解密值
				if (crypt) {
					var d = this.AES.decrypt(decrypt, '1234567890123456', '1234567890123456')
				} else {
					var d = decrypt
				}
				// console.log(d)
				return d;
			},
			//url数组解码
			decodeurl(fordecode) {
				for (let i = 0; i < fordecode.length; i++) {
					for (var k in fordecode[i]) {
						fordecode[i][k] = decodeURIComponent(fordecode[i][k])
					}
				}
				return fordecode
			},

		}
	}
</script>

<style>
	/*每个页面公共css */
</style>